package com.sunfeng.chap2;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;

/**
 * 验证批量读
 */
public class Test4_1 {
    public static void main(String[] args) throws FileNotFoundException {
        FileInputStream fileInputStream = new FileInputStream(new File("d:\\a.txt"));
        FileChannel fileChannel = fileInputStream.getChannel();
        ByteBuffer allocate = ByteBuffer.allocate(2);
        allocate.reset();
    }

}
